#!/bin/bash
#

for i in $(cat /tmp/userlist);do
    if id $i &> /dev/null;then
     echo "用户${i}已存在"
    else
     useradd ${i}
     echo "用户${i}创建成功"
    fi
done
